package sy.pageModel;

public class OrderDrug {
	
	private int page;
	private int rows;
	private String sort;
	private String order;
	private String ids;
	private String createTimeStart;
	private String createTimeEnd;
	
	public int getPage() {
		return page;
	}

	public void setPage(int page) {
		this.page = page;
	}

	public int getRows() {
		return rows;
	}

	public void setRows(int rows) {
		this.rows = rows;
	}

	public String getSort() {
		return sort;
	}

	public void setSort(String sort) {
		this.sort = sort;
	}

	public String getOrder() {
		return order;
	}

	public void setOrder(String order) {
		this.order = order;
	}

	public String getIds() {
		return ids;
	}

	public void setIds(String ids) {
		this.ids = ids;
	}
	
	public String getCreateTimeStart() {
		return createTimeStart;
	}

	public void setCreateTimeStart(String createTimeStart) {
		this.createTimeStart = createTimeStart;
	}
	
	public String getCreateTimeEnd() {
		return createTimeEnd;
	}

	public void setCreateTimeEnd(String createTimeEnd) {
		this.createTimeEnd = createTimeEnd;
	}
	
	private String id = "";
	private String orderId = "";
	private String cardId = "";
	private String name = "";
	private String status = "";
	private String mobile = "";
	private String createTime = "";
	private String gender = "";
	private String cid = ""; //身份证号
	private String bornDate = ""; //出生日期
	private String factory = ""; //生产厂家
	private String dealer = ""; //经销商
	private String drugItems = ""; //药品详情
	private String serviceTime = ""; //服务时间
	private String isUrgent = ""; //是否紧急
	private String isNeedInvoice = "1";//是否需要发票,默认为否（1）
	private String isNeedDeliver = "1"; //是否需要配送，默认为否（1）
	private double estimateFee;  //预估费用
	private double actualFee;    //实际费用
	private String serviceDetails; //服务详单
	
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}
	
	public String getOrderId() {
		return orderId;
	}

	public void setOrderId(String orderId) {
		this.orderId = orderId;
	}
	
	public String getCardId() {
		return cardId;
	}

	public void setCardId(String cardId) {
		this.cardId = cardId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	public String getStatus() {
		return this.status;
	}
	
	public String getStatusName() {
		return OrderDoctor.ORDER_STATUS_MAP.get(status);
	}
	
	public void setStatus(String status) {
		this.status = status;
	}
	
	public String getMobile() {
		return mobile;
	}
	
	public void setMobile(String mobile) {
		this.mobile = mobile;
	}
	
	public String getCreateTime() {
		return createTime;
	}
	
	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}
	
	public String getGender() {
		return this.gender;
	}
	
	public String getGenderName() {
		return Member.MEMBER_GENDER_MAP.get(gender);
	}
	
	public void setGender(String gender) {
		this.gender = gender;
	}
	
	public String getCid() {
		return cid;
	}
	
	public void setCid(String cid) {
		this.cid = cid;
	}
	
	public String getBornDate() {
		return bornDate;
	}
	
	public void setBornDate(String bornDate) {
		this.bornDate = bornDate;
	}
	
	public String getFactory() {
		return factory;
	}
	
	public void setFactory(String factory) {
		this.factory = factory;
	}
	
	public String getDealer() {
		return dealer;
	}
	
	public void setDealer(String dealer) {
		this.dealer = dealer;
	}
	
	public String getDrugItems() {
		return drugItems;
	}
	
	public void setDrugItems(String drugItems) {
		this.drugItems = drugItems;
	}
	
	public String getServiceTime() {
		return serviceTime;
	}
	
	public void setServiceTime(String serviceTime) {
		this.serviceTime = serviceTime;
	}
	
	public String getIsUrgent() {
		return isUrgent;
	}
	
	public void setIsUrgent(String isUrgent) {
		this.isUrgent = isUrgent;
	}
	
	public String getIsUrgentName() {
		return "Y".equals(this.isUrgent) ? "是" : "否";
	}
	
	public String getIsNeedInvoice() {
		return isNeedInvoice;
	}
	
	public void setIsNeedInvoice(String isNeedInvoice) {
		this.isNeedInvoice = isNeedInvoice;
	}
	
	public String getIsNeedInvoiceName() {
		return "0".equals(this.isNeedInvoice) ? "是" : "否";
	}
	
	public String getIsNeedDeliver() {
		return isNeedDeliver;
	}
	
	public void setIsNeedDeliver(String isNeedDeliver) {
		this.isNeedDeliver = isNeedDeliver;
	}
	
	public String getIsNeedDeliverName() {
		return "0".equals(this.isNeedDeliver) ? "是" : "否";
	}
	
	public double getEstimateFee() {
		return estimateFee;
	}
	
	public void setEstimateFee(double estimateFee) {
		this.estimateFee = estimateFee;
	}
	
	public double getActualFee() {
		return actualFee;
	}
	
	public void setActualFee(double actualFee) {
		this.actualFee = actualFee;
	}
	
	public String getServiceDetails() {
		return serviceDetails;
	}
	
	public void setServiceDetails(String serviceDetails) {
		this.serviceDetails = serviceDetails;
	}
	
	@Override
	public String toString() {
		StringBuilder sb = new StringBuilder();
		sb.append("id='" + id + "', ");
		sb.append("cardId='" + cardId + "', ");
	    sb.append("name='" + name + "', ");
	    sb.append("status='" + status + "', ");
	    sb.append("statusName='" + this.getStatusName() + "', ");
	    sb.append("mobile='" + mobile + "', ");
	    sb.append("orderId='" + orderId + "', ");
	    sb.append("createTime='" + createTime + "', ");
	    sb.append("gender='" + gender + "', ");
	    sb.append("genderName='" + this.getGenderName() + "', ");
	    sb.append("cid='" + cid + "', ");
	    sb.append("bornDate='" + bornDate + "', ");
	    sb.append("factory='" + factory + "', ");
	    sb.append("dealer='" + dealer + "', ");
	    sb.append("serviceTime='" + serviceTime + "', ");
	    sb.append("drugItems='" + drugItems + "', ");
	    sb.append("estimateFee='" + estimateFee + "', ");
	    sb.append("actualFee='" + actualFee + "', ");
	    sb.append("serviceDetails='" + serviceDetails + "', ");
	    sb.append("isUrgent='" + isUrgent + "'");
	    return sb.toString();		
	}
}
